{% extends 'base.html' %}
	
{% block content %}

<script>
	$("#user_menu").addClass("selected");
</script>  

{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}

<form action="" method="post">
{% csrf_token %}
<label for="nome">Nome: </label>
<input type="text" name="first_name" id="user_name" 
	value="{% if user_name %}{{user_name}}{% else %}{{user_name}}{% endif %}" />
<br />
<label for="email">E-mail: </label>
<input type="text" name="email" id="user_email" 
	value="{% if user_email %}{{user_email}}{% else %}{{user_email}}{% endif %}""/>
<br />
{% if form.non_field_errors %}
		<strong style="color:red;"> {{form.non_field_errors}}
</strong>
	{% endif %}
<label for="senha">Senha: </label>
<input type="password" name="password" id="user_password" value="{{ user.password }}" />
<br />
<label for="senha">Confirmar Senha: </label>
<input type="password" name="confirm_password" id="user_password" value="{{ user.password }}" />
<br />
<br />
<input type="submit" value="Salvar" />
</form>

{% endblock %}